// let ArrData: number[] = [11, 22, 33, 11, 22, 45, 4512564, 45152]
// let DataArr: number[] = []


// ArrData.forEach((item: number, index: number) => {
//     if (!DataArr.includes(item)) {
//         DataArr.push(item)
//     }
// })

// console.log(DataArr);

// let dataArr:number[] = [123,123,45,65,45]

// let dataArr1:number[] =[]


// dataArr.forEach((item,index)=>{
//     if(!dataArr1.includes(item)){
//         dataArr1.push(item)
//     }
// })


// console.log(dataArr1);


//js的数据类型有
// 基本数据类型
// 数值 Number 字符串String 布尔值 Bool



let ArrData:number[] =[1,2,3,4,5,6,12,3,4,5,6]
let DataArr:number[]=[]

ArrData.forEach((item,index)=>{
    if(!DataArr.includes(item)){
        DataArr.push(item)
    }
})

console.log(DataArr);

let arr:number[]=[1,2,3,4,5]

function mypop(arr: string | any[]){
    arr.length=arr.length-1;
    return arr
}
console.log(mypop([1,null,NaN,2,undefined]));


var pusharr = ()=>{
    var arr = arguments[0];
    for(var i =1;i<arguments.length;i++){
        arr[arr.length]=arguments[i];
    }
    console.log(arr);
    return arr.length
    
}

console.log(pusharr([1,2,3,5]));


var arr222:string[] = [['a','b'],['10','22','55']]
function twbTop(arr222){
    var (var i = 0;i<arr222.length;i++){
        for(var j = 0li<arr[i].length;j++){
            arrs.push(arr222[i][j])
        }
    }
    return arrs
}
console.log(twbTop);


let arr111:String[]=['123']


let boolean1:boolean[]=[false,true]

let nuber:number[]=[1,2,3,4,5,6]


let arrw: {
    name:string
    age:number
}[]=[{
    name:'胡子瑜',
    age:18
}]


let objw:{
    name:string
    age:number
}={
    name:"胡子瑜",
    age:20
}


let funp=(tsw:string,rop:number):number=>{
    return tsw+top
}